<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/view/include/css-include.jsp"%>
<%@ include file="/view/include/jsp-include.jsp"%>
<%@ include file="/view/include/jquery-include.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<script type="text/javascript">
    $().ready(function() { 
        <%-- 달력 --%>
        calendar.makeCalender("sStartDate");
        calendar.makeCalender("sEndDate");
        
        //view(1);   
        $("#onExcel").bind("click",function(){
        	var allChk = "0";
            var stockInChk = "0";
            var stockOutChk = "0";
            var deliveryChk = "0";
            var returnStockChk = "0";
            var adjustChk = "0";
            
            var onBoardChk = "0";
            var shipmentStatusChk = "0";
            var clearanceChk = "0";
            var qurantineChk = "0";
            var stockToBeDisposalChk = "0";
            var disposalChk = "0";
            //var actualDeliveryChk = "0";
            var stockToWhChk = "0";
            var lossChk = "0";
            
            
            if($("#all").is(":checked") == true){
                allChk = "1";
            }
            
            if($("#onBoard").is(":checked") == true){
                onBoardChk = "1";
            }
            
            if($("#shipmentStatus").is(":checked") == true){
                shipmentStatusChk = "1";
            }
            
            if($("#clearance").is(":checked") == true){
                clearanceChk = "1";
            }
            
            if($("#stockIn").is(":checked") == true){
                stockInChk = "1";
            }
            
            if($("#stockOut").is(":checked") == true){
                stockOutChk = "1";
            }

            if($("#delivery").is(":checked") == true){
                deliveryChk = "1";
            }
            
            if($("#returnStock").is(":checked") == true){
                returnStockChk = "1";
            }
            
            if($("#adjust").is(":checked") == true){
            	adjustChk = "1";
            }
            
            if($("#qurantine").is(":checked") == true){
                qurantineChk = "1";
            }

            if($("#stockToBeDisposal").is(":checked") == true){
                stockToBeDisposalChk = "1";
            }
            
            /*if($("#actualDelivery").is(":checked") == true){
                actualDeliveryChk = "1";
            }*/
            
            if($("#stockToWh").is(":checked") == true){
                stockToWhChk = "1";
            }
            
            if($("#loss").is(":checked") == true){
                lossChk = "1";
            }
            
            if($("#disposal").is(":checked") == true){
                disposalChk = "1";
            }
            
            var paramData = "goodsCode="+ $("#sGoodsCode").val()
            +"&goodsName="+$("#sGoodsName").val()
            +"&roleId="+$("#roleId").val()
            +"&custCodeUser="+ $("#custCodeUser").val()
            +"&sShipper="+$("#sShipper").val()
            +"&sShipperName="+$("#sShipperName").val()
            +"&sMessrs="+ $("#sMessrs").val()
            +"&sMessrsName="+ $("#sMessrsName").val()
            +"&sStartDate="+$("#sStartDate").val()
            +"&sEndDate="+$("#sEndDate").val()
            +"&batchNo="+$("#lotNo").val()
            +"&mawb="+$("#mawb").val()
            +"&hawb="+$("#hawb").val()
            +"&sort="+$("#sort").val()
            +"&all="+allChk
            +"&onBoard="+onBoardChk
            +"&shipmentStatus="+shipmentStatusChk
            +"&clearance="+clearanceChk             
            +"&stockIn="+stockInChk
            +"&stockOut="+stockOutChk
            +"&delivery="+deliveryChk
            +"&returnStock="+returnStockChk
            +"&adjust="+adjustChk
            +"&qurantine="+qurantineChk
            +"&stockToBeDisposal="+stockToBeDisposalChk
            //+"&actualDelivery="+actualDeliveryChk
            
            +"&stockToWh="+stockToWhChk
            +"&loss="+lossChk
            +"&disposal="+disposalChk
            
            +"&qurYn="+"N";
        	
            document.target="_blank";
            document.location.href = "/actualStockListExcel.html?"+paramData;
           //location="/customerWrite.html";            
        });
        /* 조회버튼 */
        $("#btnSearch").bind("click",function(){       
            view(1);
        });
        
    });

    function view(page){
//    	$('input:checkbox [ id="checkbox_id" ]').val();
        var allChk = "0";
        var stockInChk = "0";
        var stockOutChk = "0";
        var deliveryChk = "0";
        var returnStockChk = "0";
        var adjustChk = "0";
        
        var onBoardChk = "0";
        var shipmentStatusChk = "0";
        var clearanceChk = "0";
        var qurantineChk = "0";
        var stockToBeDisposalChk = "0";
        var disposalChk = "0";
        //var actualDeliveryChk = "0";
        var stockToWhChk = "0";
        var lossChk = "0";
        
        
        if($("#all").is(":checked") == true){
        	allChk = "1";
        }
        
        if($("#onBoard").is(":checked") == true){
            onBoardChk = "1";
        }
        
        if($("#shipmentStatus").is(":checked") == true){
            shipmentStatusChk = "1";
        }
        
        if($("#clearance").is(":checked") == true){
            clearanceChk = "1";
        }
        
        if($("#stockIn").is(":checked") == true){
        	stockInChk = "1";
        }
        
		if($("#stockOut").is(":checked") == true){
			stockOutChk = "1";
		}

        if($("#delivery").is(":checked") == true){
        	deliveryChk = "1";
        }
        
        if($("#returnStock").is(":checked") == true){
        	returnStockChk = "1";
        }
        
        if($("#adjust").is(":checked") == true){
        	adjustChk = "1";
        }
        
        
        if($("#qurantine").is(":checked") == true){
        	qurantineChk = "1";
        }

        if($("#stockToBeDisposal").is(":checked") == true){
        	stockToBeDisposalChk = "1";
        }
        
        /*if($("#actualDelivery").is(":checked") == true){
        	actualDeliveryChk = "1";
        }*/
        
        if($("#stockToWh").is(":checked") == true){
        	stockToWhChk = "1";
        }
        
        if($("#loss").is(":checked") == true){
        	lossChk = "1";
        }
        
        if($("#disposal").is(":checked") == true){
        	disposalChk = "1";
        }
        

        $.post(
                '/getActualStockListView.json', {                      
                paging : page,//odrNo,
                listScale : "15",
                goodsCode : $("#sGoodsCode").val(),
                roleId : $("#roleId").val(),
                custCodeUser : $("#custCodeUser").val(),
                sShipper : $("#sShipper").val(),
                sMessrs : $("#sMessrs").val(),
                sStartDate : $("#sStartDate").val(),
                sEndDate : $("#sEndDate").val(),
                batchNo : $("#lotNo").val(),
                mawb : $("#mawb").val(),
                hawb : $("#hawb").val(),
                sort : $("#sort").val(),
                
                all : allChk,
                onBoard : onBoardChk,
                shipmentStatus : shipmentStatusChk,
                clearance : clearanceChk,                
                stockIn : stockInChk,
                stockOut : stockOutChk,
                delivery : deliveryChk,
                returnStock : returnStockChk,
                adjust : adjustChk,
                qurantine : qurantineChk,
                stockToBeDisposal : stockToBeDisposalChk,
                //actualDelivery : actualDeliveryChk,
                stockToWh : stockToWhChk,
                disposal : disposalChk,
                loss : lossChk,
                
                qurYn : "N"
                
               /* <input type="checkbox" name="all" id="all" value="" checked/> ALL &nbsp;&nbsp;&nbsp;
                <input type="checkbox" name="stockIn" id="stockIn" value=""/> STOCK IN &nbsp;&nbsp;&nbsp;
                <input type="checkbox" name="stockOut" id="stockOut" value=""/> STOCK OUT &nbsp;&nbsp;&nbsp; 
                <input type="checkbox" name="delivery" id="delivery" value=""/> ACTUAL DELVIERY &nbsp;&nbsp;&nbsp;
                <input type="checkbox" name="return" id="return" value=""/> RETURN   */   
                
               },
            function(data) {
                //$("#actualStockStatusDetail").remove();
                //reSetValidete(); //벨류데이션 초기화
                searchDataMaping(data);    //DATA맵핑 
            });
    }
    
    /* searchData 맵핑 */
    function searchDataMaping(data){        
           
        var contents = "";
        var cHeader = "<tr>"
        	+"<th width='17%'>Div</th>"
        	+"<th width='12%'>Date</th>"
        	+"<th width='22%'>Goods</th>"
        	+"<th width='12%'>Batch</th>"
        	+"<th width='10%'>Cause</th>"
        	+"<th width='9%'>Dam</th>"
        	+"<th width='9%'>Loss</th>"
        	+"<th width='9%'>Qty</th>"
        	+"</tr>";
        if(data.resultList.length == 0){
            contents = "<tr><td colspan='8' height='50' bgcolor='#FFFFFF' align='center'><B>No Data</B></td></tr>";
            $("#actualStockStatusDetail").html(cHeader+contents);
                
        }else{ 
	        $.each(data.resultList, function(index){  // List로 받아온값 (여러건)  
	           contents += "<tr style='cursor:pointer' onclick='rowSelect(this, \""+this.divs+"\", \""+this.keyParam+"\", \""+this.keyParam2+"\", \""+this.keyParam3+"\", \""+this.keyParam4+"\", \""+this.goodsName+"\", \""+this.mawb+"\", \""+this.hawb+"\", \""+this.menuId+"\", \""+this.menuImgPath+"\", \""+this.remark+"\"); ''>"
	               +"<td align='center'>"+this.divs+"</td>"
	               +"<td align='center'>"+this.sDate+"</td>"
	               +"<td align='left' class='boSub'>"+this.goodsName+"</td>"
	               +"<td align='center'>"+this.batchNo+"</td>"
	               +"<td align='center'>"+this.cause+"</td>"
	               +"<td align='right' class='boSubR'>"+this.damQty+"</td>"
	               +"<td align='right' class='boSubR'>"+this.lossQty+"</td>"
	               +"<td align='right' class='boSubR'>"+this.qty+"</td>"
	               +"</tr>";
	            
	        });
        }
        
        var totalPage = Math.ceil(parseInt(data.actualStockListCount)/parseInt(15));        
        $("#spanCount").empty().html("Total : "+data.actualStockListCount);
        $("#pageCount").empty().html("Page : "+$("#pageNum").val()+" / "+totalPage);                    
        $("#page").empty().html(data.pageSplit);
        
        $("#actualStockStatusDetail").html(cHeader+contents);  // 조회 값 뿌리기
        $("#actualStockStatusDetail tr:eq(1)").click(); 
        
    }
    
    
    var divsTmp = "";
    var argTmp = "";
    var arg2Tmp = "";
    var arg3Tmp = "";
    var arg4Tmp = "";
    var arg5Tmp = "";
    var arg6Tmp = "";
    var arg7Tmp = "";
    var arg8Tmp = "";
    var arg9Tmp = "";
    
    function rowSelect(obj, divs, keyParam, keyParam2, keyParam3, keyParam4, goodsName, mawb, hawb, menuId, menuImgPath, remark){
    	divsTmp = divs;
    	argTmp = keyParam;
    	arg2Tmp = keyParam2;
    	arg3Tmp = keyParam3;
    	arg4Tmp = keyParam4;
    	arg5Tmp = goodsName;
        arg6Tmp = mawb;
        arg7Tmp = hawb;
        arg8Tmp = menuId;
        arg9Tmp = menuImgPath;
        $("#remark").val(remark);
        $("#actualStockStatusDetail tr").css("backgroundColor","#FFFFFF");
        obj.style.backgroundColor="#e0eeee";  
        document.ondblclick=dblclick;
    }

    function dblclick(){
        goPages(argTmp, arg2Tmp, arg3Tmp, arg4Tmp, arg5Tmp, arg6Tmp, arg7Tmp, arg8Tmp, arg9Tmp);
    }

    function goPages(arg, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9){

        if(divsTmp == "ON BOARD"){
        	
        	location="/packing.html?ordPseq="+arg+"&ordNo1="+arg2+"&ordNo2="+arg3+"&clearNo="+arg4+"&mawb="+arg6+"&hawb="+arg7;
         	
        }else if(divsTmp == "ARRIVAL"){
            
            location="/airTransport.html?ordPseq="+arg+"&ordNo1="+arg2+"&ordNo2="+arg3+"&clearNo="+arg4+"&mawb="+arg6+"&hawb="+arg7;
            
        }else if(divsTmp == "CLEARANCE"){
            
        	location="/clearance.html?ordPseq="+arg+"&ordNo1="+arg2+"&ordNo2="+arg3+"&clearNo="+arg4+"&mawb="+arg6+"&hawb="+arg7;
            
        }else if(divsTmp == "STOCK TO W/H"){
        	
            location="/movement.html?ordPseq="+arg+"&ordNo1="+arg2+"&ordNo2="+arg3+"&clearNo="+arg4+"&mawb="+arg6+"&hawb="+arg7;
            
        }else if(divsTmp == "STOCK IN"){
        	
            location="/stockIn.html?ordPseq="+arg+"&ordNo1="+arg2+"&ordNo2="+arg3+"&clearNo="+arg4+"&mawb="+arg6+"&hawb="+arg7;
            
        }else if(divsTmp == "STOCK OUT"){
            
            location="/stockOut.html?outInvoice="+arg;
            
        }else if(divsTmp == "DELIVERY"){
        	
            location="/delivery.html?outInvoice="+arg+"&outNo="+arg2;
            
        }else if(divsTmp == "RETURN"){
        	
            location="/returnproduct.html?returnDate="+arg+"&goodsCode="+arg2+"&batchNo="+arg3+"&goodsName="+arg5;
        }else if(divsTmp == "ADJUST"){
            
            location="/productAdjustUpdate.html?adjustNo="+arg;
        }
        parent.leftF.onClicked(arg9, arg8);
    }
    
    function ajaxPageSplit(num) {
        $("#pageNum").val(num);
        view(num);
    }
    
    /************************************************************************/
    /*                      고객 팝업 버튼 , 리턴값처리                     */
    /************************************************************************/
    var popType ="";
    /* 고객 팝업 버튼 */
    function customerPopCall(obj, type){
        popType = type; 

        if(type == 'M'){
            window.open('/customerPop.html?customer=2', 'customerPop', 'width=415, height=500, toolbar=no, location=no, status=no, menubar=no, scrollbars=no');
        }else{
            window.open('/customerPop.html?customer=1', 'customerPop', 'width=415, height=500, toolbar=no, location=no, status=no, menubar=no, scrollbars=no');
        }
    }
    
    /* 고객정보 맵핑 */
    function customerPopValue(custCode , custName , addr1 , addr2, tel, fax){  
         switch(popType){
         case "S":
               $("#sShipper").val(custCode);
               $("#sShipperName").val(custName); 
               break;
         case "M":
             $("#sMessrs").val(custCode);
             $("#sMessrsName").val(custName); 
             break;
         }
           popType = "";
    };
    
    /************************************************************************/
    /*                      상품 팝업 버튼 , 리턴값처리                     */
    /************************************************************************/
    /* 상품 팝업 버튼 */
    function onProductPopup(obj){
    	var custCodeTmp = "";
    	if($("#roleId").val() == "3"){
    		custCodeTmp = $("#custCodeUser").val();
    	}
        window.open('/productPop.html?custCode='+custCodeTmp, 'changeProductPop', 'width=615, height=450, toolbar=no, location=no, status=no, menubar=no, scrollbars=no');
    }

    function productPopValue(goodsCode, goodsName, unit, boxQty, hsCode, productCode, custCode, custName){

        $("#sGoodsCode").val(goodsCode);
        $("#sGoodsName").val(goodsName);   
    }
    
    function onChangeCheck(arg){
        if(arg == "A"){
            $("#onBoard").removeAttr("checked");
            $("#shipmentStatus").removeAttr("checked");
            $("#clearance").removeAttr("checked");
            $("#stockToWh").removeAttr("checked");
            $("#stockIn").removeAttr("checked");
            $("#stockOut").removeAttr("checked");
            $("#delivery").removeAttr("checked");
            $("#returnStock").removeAttr("checked");
            $("#adjust").removeAttr("checked");
            $("#qurantine").removeAttr("checked");
            $("#stockToBeDisposal").removeAttr("checked");
            $("#disposal").removeAttr("checked");
            $("#loss").removeAttr("checked");
        	
        }else{
        	$("#all").removeAttr("checked");
        	$("#qurantine").removeAttr("checked");
            $("#stockToBeDisposal").removeAttr("checked");
            $("#disposal").removeAttr("checked");
            $("#loss").removeAttr("checked");
        }
    }
    
    function onChangeCheck2(arg){
        if(arg == "1"){
        	$("#all").removeAttr("checked");
        	$("#onBoard").removeAttr("checked");
        	$("#shipmentStatus").removeAttr("checked");
        	$("#clearance").removeAttr("checked");
        	$("#stockToWh").removeAttr("checked");
        	//$("#stockIn").removeAttr("checked");
        	//$("#stockOut").removeAttr("checked");
        	$("#delivery").removeAttr("checked");
        	$("#returnStock").removeAttr("checked");
        	$("#adjust").removeAttr("checked");
        	//$("#qurantine").removeAttr("checked");
        	$("#stockToBeDisposal").removeAttr("checked");
        	$("#disposal").removeAttr("checked");
        	$("#loss").removeAttr("checked");
            
            $("#stockIn").attr("checked","checked");
            $("#returnStock").attr("checked","checked");
            
        }else if(arg == "2"){
        	$("#all").removeAttr("checked");
        	$("#onBoard").removeAttr("checked");
        	$("#shipmentStatus").removeAttr("checked");
        	$("#clearance").removeAttr("checked");
        	$("#stockToWh").removeAttr("checked");
        	//$("#stockIn").removeAttr("checked");
        	$("#stockOut").removeAttr("checked");
        	$("#delivery").removeAttr("checked");
        	//$("#returnStock").removeAttr("checked");
        	$("#adjust").removeAttr("checked");
        	$("#qurantine").removeAttr("checked");
        	//$("#stockToBeDisposal").removeAttr("checked");
        	$("#disposal").removeAttr("checked");
        	$("#loss").removeAttr("checked");
            
            $("#stockIn").attr("checked","checked");
            $("#returnStock").attr("checked","checked");
            
        }else if(arg == "3"){
        	$("#all").removeAttr("checked");
        	$("#onBoard").removeAttr("checked");
        	$("#shipmentStatus").removeAttr("checked");
        	$("#clearance").removeAttr("checked");
        	$("#stockToWh").removeAttr("checked");
        	$("#stockIn").removeAttr("checked");
        	$("#stockOut").removeAttr("checked");
        	$("#delivery").removeAttr("checked");
        	//$("#returnStock").removeAttr("checked");
        	$("#adjust").removeAttr("checked");
        	$("#qurantine").removeAttr("checked");
        	$("#stockToBeDisposal").removeAttr("checked");
        	//$("#disposal").removeAttr("checked");
        	$("#loss").removeAttr("checked");
            
            $("#returnStock").attr("checked","checked");
            
        }else{            
        	$("#all").removeAttr("checked");
        	$("#onBoard").removeAttr("checked");
        	$("#shipmentStatus").removeAttr("checked");
        	$("#clearance").removeAttr("checked");
        	$("#stockToWh").removeAttr("checked");
        	//$("#stockIn").removeAttr("checked");
        	$("#stockOut").removeAttr("checked");
        	$("#delivery").removeAttr("checked");
        	//$("#returnStock").removeAttr("checked");
        	$("#adjust").removeAttr("checked");
        	$("#qurantine").removeAttr("checked");
        	$("#stockToBeDisposal").removeAttr("checked");
        	$("#disposal").removeAttr("checked");
        	//$("#loss").removeAttr("checked");

            $("#stockIn").attr("checked","checked");
            $("#returnStock").attr("checked","checked");
        }
    }
</script>
</head>
<body>
<div class="wrap">
    <div class="pagetitle">
        <h1>ACTUAL STOCK LIST</h1>
    </div>
    <div>
        <table class="TableST">
            <tr>
                <th width="15%">Shipper</th>
                <td width="35%">
                    <input type="text" class="inSTR80" id="sShipperName" name="sShipperName" maxlength="20"/>
                    <input type="hidden" id="sShipper" name="sShipper" />
                    <img alt="Search" hight="16" width="16" onclick="customerPopCall(this, 'S')" src="/images/web/bkn_zoom.gif">
                </td>
                <th width="15%">Messrs</th>
                <td width="35%">
                    <input type="text" class="inSTR80" id="sMessrsName" name="sMessrsName" maxlength="20"/>
                    <input type="hidden" id="sMessrs" name="sMessrs" />
                    <img alt="Search" hight="16" width="16" onclick="customerPopCall(this, 'M')" src="/images/web/bkn_zoom.gif">
                </td>
            </tr>
            <tr>
                <th width="15%">Goods</th>
                <td width="35%">
                    <input type='text' class='inSTR80' name='sGoodsName' id='sGoodsName'/>
                    <img src='/images/web/bkn_zoom.gif' aligh='right' id='stockOutPop' onclick='onProductPopup(this);'>
                    <input type='hidden' class='inSTR95' name='sGoodsCode' id='sGoodsCode'/>
                </td>
                <th>Batch</th>
                <td>
                    <input type="text" class="inST80" name="lotNo" id="lotNo"/>                    
                </td>
            </tr>
            <tr>
                <th width="15%">MAWB</th>
                <td width="35%">
                    <input type="text" class="inST80" id="mawb" name="mawb" value=""/>
                </td>
                <th width="15%">HAWB</th>
                <td width="35%">
                    <input type="text" class="inST80" id="hawb" name="hawb" value=""/>
                </td>
            </tr>
            <tr>
                <th width="15%">Start Date</th>
                <td width="35%">
                    <input type="text" class="inSTR70" id="sStartDate" name="sStartDate" value=""/>
                </td>
                <th width="15%">End Date</th>
                <td width="35%">
                    <input type="text" class="inSTR70" id="sEndDate" name="sEndDate" value=""/>
                </td>
            </tr>
            <tr>
                <th>Type1</th>
                <td colspan="3" style="height:38px">
                    <table>
                        <tr>
                            <td style="border-bottom:0px;width:15%"><input type="checkbox" name="all" id="all" value="" onclick="onChangeCheck('A');" checked/> ALL </td>
                            <td style="border-bottom:0px;width:15%"><input type="checkbox" name="onBoard" id="onBoard" value="" onclick="onChangeCheck('N');"/> ON BOARD </td>
                            <td style="border-bottom:0px;width:15%"><input type="checkbox" name="shipmentStatus" id="shipmentStatus" value="" onclick="onChangeCheck('N');"/> ARRIVAL </td>
                            <td style="border-bottom:0px;width:15%"><input type="checkbox" name="clearance" id="clearance" value="" onclick="onChangeCheck('N');"/> CLEARANCE </td>
                            <td style="border-bottom:0px;width:20%"><input type="checkbox" name="stockToWh" id="stockToWh" value="" onclick="onChangeCheck('N');"/> STOCK TO W/H </td>
                        </tr>
                        <tr>
                            <td style="border-bottom:0px;"><input type="checkbox" name="stockIn" id="stockIn" value="" onclick="onChangeCheck('N');"/> STOCK IN </td>
                            <td style="border-bottom:0px"><input type="checkbox" name="stockOut" id="stockOut" value="" onclick="onChangeCheck('N');"/> STOCK OUT </td>
                            <td style="border-bottom:0px"><input type="checkbox" name="delivery" id="delivery" value="" onclick="onChangeCheck('N');"/> DELIVERY </td>
                            <td style="border-bottom:0px"><input type="checkbox" name="returnStock" id="returnStock" value="" onclick="onChangeCheck('N');"/> RETURN </td>
                            <td style="border-bottom:0px"><input type="checkbox" name="adjust" id="adjust" value="" onclick="onChangeCheck('N');"/> ADJUST </td>
                        </tr>
                    </table>              
                </td>
            </tr>
            <tr>
                <th>Type2</th>
                <td colspan="3" style="height:18px">
                    <table>
                        <tr>
                            <td style="border-bottom:0px;width:20%"><input type="checkbox" name="qurantine" id="qurantine" value="" onclick="onChangeCheck2('1');" style="vertical-align:middle;"/> QURANTINE </td>
                            <td style="border-bottom:0px;width:33%"><input type="checkbox" name="stockToBeDisposal" id="stockToBeDisposal" style="vertical-align:middle;" value="" onclick="onChangeCheck2('2');"/> STOCK TO BE DISPOSAL </td>
                            <td style="border-bottom:0px;width:33%"><input type="checkbox" name="disposal" id="disposal" style="vertical-align:middle;" value="" onclick="onChangeCheck2('3');"/> DISPOSAL </td>
                            <!-- td style="border-bottom:0px;width:34%"><input type="checkbox" name="actualDelivery" id="actualDelivery" style="vertical-align:middle;" value="" onChange="onChangeCheck2('3');"/> ACTUAL DELIVERY </td-->
                        </tr>
                    </table>              
                </td>
            </tr>
            <tr>
                <th>Type3</th>
                <td style="height:18px">
                    <table>
                        <tr>
                            <td style="border-bottom:0px;width:20%;vertical-align:middle;"><input type="checkbox" name="loss" id="loss" value="" onChange="onChangeCheck2('4');" style="vertical-align:middle;"/> LOSS </td>
                            <!-- td style="border-bottom:0px;width:34%"><input type="checkbox" name="actualDelivery" id="actualDelivery" style="vertical-align:middle;" value="" onChange="onChangeCheck2('3');"/> ACTUAL DELIVERY </td-->
                        </tr>
                    </table>              
                </td>
                <th>SORT</th>
                <td style="height:18px">
                    <select name="sort" id="sort">
                       <option value="DESC">DESC</option>
                       <option value="ASC">ASC</option>           
                    </select>             
                </td>
            </tr>
        </table>
        <div class="bo_btnS">
            <ul class="btnst"><li class="a"><a href="#" id="btnSearch" >SEARCH</a></li></ul>
        </div>
        <br/><br/><br/><br/>
        <ul>
            <li class="totaltext"><span id="spanCount">Total : 0</span></li>
            <li class="pagetext"><span id="pageCount">Page : 1&frasl;1</span></li>
            <li class="bolistW">
                <table class="TableST4" id="actualStockStatusDetail">
                <tr>
		            <th width='17%'>Div</th>
		            <th width='12%'>Date</th>
		            <th width='22%'>Goods</th>
		            <th width='12%'>Batch</th>
		            <th width='10%'>Cause</th>
		            <th width='9%'>Dam</th>
		            <th width='9%'>Loss</th>
		            <th width='9%'>Qty</th>
	            </tr>
                <tr><td colspan='8' height='50' bgcolor='#FFFFFF' align='center'><B></B></td></tr>                
                </table>
            </li>
        </ul>
    </div>
    <div class="page_wrap">
        <div class="page" id="page" >
        </div>
    </div>
    <br />
    <table class="TableST5">
        <tr>
            <th>Remarks</th>
            <td><textarea class="teST80" wrap="virtual" id="remark" name="remark" style="background:#eeeeee" readonly></textarea></td>
        </tr>      
    </table>
    <div class="bo_btn">
        <ul class="btnst"><li class="a"><a href="#" id="onExcel" >EXCEL</a></li></ul>
    </div>
    <input type="hidden" name="pageNum" id="pageNum" value="1">
    <input type="hidden" name="custCodeUser" id="custCodeUser" value="${requestScope.custCodeUser}">
    <input type="hidden" name="roleId" id="roleId" value="${requestScope.roleId}">
</div>
</body>
</html>